package 剑指offer;

/**
 * @description:
 * @author: ywk
 * @date: 2020-11-06
 */
public class 在转动过的有序数组中寻找目标值 {
    public static void main(String[] args) {

    }
    public int search (int[] A, int target) {
        // write code here
        for (int i = 0; i < A.length; i++) {
            if (target == A[i]) {
                return i;
            }
        }
        return -1;
    }
}
